package org.yjhking.service;

import org.yjhking.domain.User;
import org.yjhking.dto.Movie;
import org.yjhking.query.AjaxResult;

/**
 * @author YJH
 */
public interface UserService {
    
    
    int deleteByPrimaryKey(Long id);
    
    int insert(User record);
    
    int insertSelective(User record);
    
    User selectByPrimaryKey(Long id);
    
    int updateByPrimaryKeySelective(User record);
    
    int updateByPrimaryKey(User record);
    
    AjaxResult getMovieList();
    
    AjaxResult buy(Movie movie);
    
    AjaxResult insertUser(User user);
    
    AjaxResult watchMovie(Movie movie);
    
    AjaxResult getUserById(Long id);
    
    AjaxResult updateUser(User user);
}
